tests: posix: pthread: add test for `sigprocmask()`

Refactor the existing `pthread_sigmask` test function to
get its function-under-test via arg and test `sigprocmask` with
that.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
1 file changed