[NFC][sanitizer] Move GET_MALLOC_STACK_TRACE closer to the use

GitOrigin-RevId: 651797f488682072fcb27ccb9da333b52b55ea7d
3 files changed