@unlock Removes the lock of an object.