Fix indent.
Shrink the critical section in the bytestream data source.

Fixed #79, again - we were grabbing the read lock in the main data
source loop but that wasn't necessary and was actually causing the
problem. Now we only grab the read lock when actually reading/writing
data to the socket, not for the entire spin through the main loop.