Fix race condition in Close()
switch to RLock
Merge pull request #162 from PatrickDropbox/master

Fix race condition in producer's Close()