[PATCH openEuler-5.10-LTS 26/50] signal: Add task_sigpending() helper