[tor-commits] [weather/master] Add workaround for concurrency problem in database access. Fixes #5521