Fixes the following security issue: - CVE-2021-33574: The mq_notify function has a potential use-after-free issue when using a notification type of SIGEV_THREAD and a thread attribute with a non-default affinity mask. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>