Removed keepLock field and releaseDocument from RemotePipeline

Closes #289.