Fixing OSHMEM compiler warnings when --enable-mpi-thread-multiple is set