tests: define MAP_ANONYMOUS if it's not already

MAP_ANONYMOUS is not part of POSIX and some other systems (like Mac OS)
call it MAP_ANON.

https://bugzilla.gnome.org/show_bug.cgi?id=741933