— Create a new lock.
A symbol to name the lock. Names not be unique. It defaults
This function creates a lock object that can be use to synchronize different tasks. The own is initally free and not owned by any task. Locks are typically implemented using Posix mutexes. When garbage collected, a lock is automatically freed.