Use defer for unlock mutex, get to familiar with more features of go