If local process tracking database is locked, wait and try again 3 times