CS-944 | STREAMS-86 | Added read/write lock to the queue being used to f...

...orm the resultSet