[ASan] Make sure IOC_DIRMASK is undefined before redefining it.