A few useful locking utilities for Go