[Sanitizer] Fix OnPrint weak hook. Disable weak hooks for gotsan.