[io-layer] Make _wapi_shm_enabled () inline so more code can be optimized away if shared handles are disabled.