Weird concurrency issue with JDBC getConnection