Fix NSURLSession hook when testing against iOS versions < 7.0 and OS X versions < 10.9

LSNSURLSessionHook is registered on startup regardless of whether NSURLSession is available. We should only register it if NSURLSession is in fact available.