Work around jemalloc/jemalloc#161
auto merge of #18554 : sfackler/rust/jemalloc-fix, r=thestinger