Workaround spurious complaints by ASAN and MSAN.