os/os-android.h: fix alignment problems in shared memory functions