protect critical region from a signal