Add log warning when unlocking but a lock was not acquired.