Fixed crash in lock command (pickupbot)