Add test for pthread_sigqueue(3)
(cherry picked from commit fb2ab7ce52d3f1e9d0998f3e5c12c3468ce4563a)