Add a `Once` primitive

Rationale can be found in the first commit, but this is basically the same thing as `pthread_once`