Add a timeout to tdb_lock_bystring(). Ensure we never have more than