Remove locks on string streams.

These string streams are just used temporary, so the lock isn't needed.