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

Fix race condition in producer's Close()
New Producer design
Workaround https://issues.apache.org/jira/browse/KAFKA-1718