Blocks the thread executing the function until the specified lock is available and then sets the lock.
void omp_set_lock (omp_lock_t * lock);
void omp_set_nest_lock (omp_nest_lock_t * lock);
A simple lock is available if it is unlocked. A nestable lock is available if it is unlocked or if it is already owned by the thread executing the function.