Moved error signaling out of locked area in mkcl_fun_ref_fdefinition().