more efficient signal blocking for timer threads