nsqd micro-optimizations

a few changes after doing some escape analysis and profiling