Fix seek and tell in BlockingQueue

Currently seek() throws IOError conditionally and tell() returns the
maximum transfer size. This patch fixes these problems.

Change-Id: Ie8bf359457de975a8ae6373a73b5a835e53f2410
Merge "Fix seek and tell in BlockingQueue"