1.0.23.9: extend pa_alloc to accept a page_type_flag