CTX_LOCK
#define CTX_LOCK(ctx) pthread_mutex_lock(&(ctx)->ctx_lock)
#define CTX_LOCK(ctx) sx_xlock(&(ctx)->ifc_ctx_sx)