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
It's part of the ABI and therefore jemalloc and other allocators have to provide it as the minimum.