[Pal/Linux] Block async signals on thread exiting
After the Linux PAL frees the thread's signal stack and TCB but before
the thread is actually destroyed by Linux, an arriving async signal on
this thread will result in a segfault. This commit simply blocks all
async signals before proceeding with freeing thread's resources.