util_tdb: return -1/0 from lock_with_timeout functions.