Working through the blog post about locks in Swift.