When changes have been made but not saved yet and KeePass tries to save and lock, a DB Backup warning message about a non-existing backup directory can prevent it from locking down properly.
This is especially evident when backing up to network storage devices which may not be available at all times.