[asan] fix stack trace printing on Mac