slightly more efficient fix for concurrent access to [in_stream]

now each pool has its own mutex.