x86: add flags parameter to reserve_bootmem_generic()