[PATCH openEuler-1.0-LTS 02/16] net: fix UaF in netns ops registration error path