lock_entity