Fixed threadpool+ProcessExit problem in shutdown flow

Will post a description in mono-devel for discussion...