Use bulk::malloc inside the implementation of bulk::stable_sort_by_key.