PROTECT mem in prepare_arg from GC