BUG: use separate connections in threaded tests.