Remove unneeded signal mask in connection thread

Threads inherit the signal mask from the parent thread. There is no need
to set the signal mask again.

A new test ensures that build will fail if this does not work as
documented on some platform.