Updated the output to be correct
Synchronized on the result set itself rather than on the wrapping class.