upc_global_lock_alloc function
#include <upc.h>
upc_lock_t *upc_global_lock_alloc(void);
The upc_global_lock_alloc function dynamically allocates a lock and returns
a pointer to it. The lock is created in an unlocked state.
The upc_global_lock_alloc function is not a collective function. If called
by multiple threads, all threads which make the call get different allocations.