Golang-style channels in C