Add locking around GetStream()
Merge pull request #5 from gregmac/ssl-take2

Add locking around GetStream()