OrchidSocketImpl: don't hold the stream lock whilst calling into stream.

I tried to minimise whitespace changes but tabs are a pain ... perhaps we should just untabify the whole codebase. It can always be retabified later if we decide to merge back with upstream.
Good point. I have no idea what the contract is, but this class extends implements the regular java Socket interface. I don't think it's ever a good idea to call connect on that concurrently. However in case this method is being used elsewhere in Orchid in an unexpected way, I added a bit of code to resolve the race.