reduce rt_sig* syscalls

Reduce rt_sig* syscalls from around processing request.
This patch uses flags instead of 'local $SIG{}'

Benchmark result is here https://gist.github.com/kazeburo/5114870
10% faster in truly micro benchmarking