Add missing defers on mutex.Unlock()s

Add missing defers on mutex.Unlock()s