[sanitizer] Intercept sched_getaffinity.

Re-applying with a more reliable test case.