verify that the entity is locked before trying to unlock it.