Bug 834995 - Fix race condition in mozStorageConnection.cpp. r=mak77, a=akeybl