[memaccess] Improve memaccess_darwin.c workaround