Cmake stuck on NFS - BTRFS_IOC_CLONE or FICLONE

I’m running cmake on an NFS mount from a TrueNAS SCALE server.
The command is

mkdir build
cd build
cmake ..

It happens on different projects, so I don’t think it’s project specific.

NFS Mount options:

192.168.1.4:/mnt/wpool/data/nobackup on /data/nobackup type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.249,local_lock=none,addr=192.168.1.4)

Here’s the end of strace output where it hangs:

[...]
newfstatat(AT_FDCWD, "/data/nobackup/Nextcloud/Projects/Anc/AncTests/build/CMakeFiles/3.28.2/CMakeSystem.cmake.tmp", {st_mode=S_IFREG|0664, st_size=422, ...}, 0) = 0
newfstatat(AT_FDCWD, "/data/nobackup/Nextcloud/Projects/Anc/AncTests/build/CMakeFiles/3.28.2/CMakeSystem.cmake", 0x7ffff5a229c0, 0) = -1 ENOENT (No such file or directory)
newfstatat(AT_FDCWD, "/data/nobackup/Nextcloud/Projects/Anc/AncTests/build/CMakeFiles/3.28.2", {st_mode=S_IFDIR|0775, st_size=2, ...}, AT_SYMLINK_NOFOLLOW) = 0
newfstatat(AT_FDCWD, "/data/nobackup/Nextcloud/Projects/Anc/AncTests/build/CMakeFiles/3.28.2", {st_mode=S_IFDIR|0775, st_size=2, ...}, 0) = 0
openat(AT_FDCWD, "/data/nobackup/Nextcloud/Projects/Anc/AncTests/build/CMakeFiles/3.28.2/CMakeSystem.cmake.tmp", O_RDONLY) = 4
unlink("/data/nobackup/Nextcloud/Projects/Anc/AncTests/build/CMakeFiles/3.28.2/CMakeSystem.cmake") = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/data/nobackup/Nextcloud/Projects/Anc/AncTests/build/CMakeFiles/3.28.2/CMakeSystem.cmake", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 5
ioctl(5, BTRFS_IOC_CLONE or FICLONE, 4

Fedora Workstation 40
Linux 6.8.11-300.fc40.x86_64