I think we do want to add some kind of locking primitives eventually. Probably to the standard library.
I seem to recall @lorentey mentioning it at some point, and @John_McCall has mentioned it as well: