I do not think there is any common-platform locking mechanisms in the standard library. I recommend that you try to write your common code such that it does not use shared state, and then deal with the concurrency aspects in platform specific code.
As for which synchronization mechanisms that are available on each platform:
On JVM you can use locks from package java.util.concurrent.locks.
JS does not have threads in the classical sense. Instead it has workers, which cannot share state. So here it is not a problem
On native targets, you will need to use whichever concurrency tools that are available on that platform. POSIX is probably the one that is supported on most platforms.