[sanitizer] Limit scandir interceptor to Linux.

Implementation uses __thread not available on certain platforms.