The thread safety issue has been fixed with OGM-1544 but we didn't add a test case. We should add one in the the back-end test suite to check other dialects as well, just in case.