Add SA_RESTART flag to the timer signal handler.