Block signals during dumping functions to a file.