mm/mempolicy: fix use after free when calling get_mempolicy