When the session deleting timer used to remove sessions from the database, it used to not clean them up afterwards.
That meant other threads could see inconsistent sessions.
Also removed an pointless argument from a function in the BIB database.