Make GetMutexById public and add godoc comments to sync.go