TS-374 Changed the retry to use HOST_DB_RETRY_PERIOD (2ms) and switch the
locking from a trylock to a lock.