micro-optimize dynamic allocation alignment

Previously, some parts of this optimization were impossible because the
alignment passed to the free function was not correct. That was fully
fixed by #17012.

Closes #17092
Okay, cool. I was just wondering if this was an additional guarantee provided by jemalloc or not.