Changed interface of functions mc_getlocalcopy() and mc_ungetlocalcopy()