Fix a bug in seek.

This was hidden because of another bug in offset management
Re-init the sockets in the new process
Test cases for multi-process consumer and blocking APIs