pcntl_signal_dispatch: Speed up by preventing system calls when unnecessary