Fix off-by-one error counting maxSockets.

I just copy this code from joyent/node https://github.com/joyent/node/blob/master/lib/_http_agent.js#L87