Block terminal signals while handling SelectionRequests.

The intent is to avoid rudely hanging a client that happens to send
a SelectionRequest just as we are about to exit (e.g. due to
receiving SIGALRM while in daemon mode with '-t').