The problem is:
When you build a door with a lock, everything i fine but when you place it but you want to pick it up again it just disappears and is not in your inventory and nowhere on the ground.