DESCRIPTION

This call will acquire write permission for lock. The call will block
until this permission has been acquired. cohort must point to a cohort
whose global lock is the same as all other cohorts used with lock. The
global_context and local_context arguments will be passed along as the
context arguments to any calls to cohort.