[PATCH 4.14 237/338] mrp: introduce active flags to prevent UAF when applicant uninit