properly defer unlock calls
Merge pull request #14 from jessta/master

Add missing defers on mutex.Unlock()s