test sig state by comparing against 0 instead of 1
added pthread_sigmask test

tests whether the threads on the platform inherit
signal masks from their parent.