So, why the bug triggers only with muslc and not other libc ?

Coincidence. It also only triggers on one machine.

Probably because musl's allocator exposes single newly faulted pages directly to the app. Other allocators tend to pre-allocate multiple pages at a time, so that the race window is narrower.