[Sanitizer] use u32 instead of mode_t, which is defined in Darwin headers