[PATCH 5.15.y] mm: shmem: fix data-race in shmem_getattr()