This reverts commit2cd20c2556. This relands commit9886788a8a. This was causing more buildbot failures due to getcpu not being available with glibc <=2.29. This patch fixes that by directly making the syscall, assuming the syscall number macro is available.