Adds test for inconsistent db status (i.e., expired lock_until from a broken transaction)