mm/gup: move try_get_compound_head() to top, fix minor issues