Add an name (string) attribute to create().
Use that string to created a named shared memory section, to hold the Lock's data in.
Then you can access the lock from multiple processes/cores.