ocfs2/dlm: refactor error handling in dlm_alloc_ctxt