[asan] Preserve flags in asm instrumentation.

Patch by Yuri Gorshenin.