[sanitizer] Intercept a bunch of stdio calls.

Add move fopen/freopen interceptors from TSan to common.