fix TCP chrome.socket.read behavior for small reads

fix TCP chrome.socket.read behavior for reads smaller than requested read size

https://github.com/MobileChromeApps/mobile-chrome-apps/issues/64