[Sanitizer] add sanity checks for communication with external symbolizer

llvm-svn: 167617
6 files changed