Adding support for --with-pipeline-lockless
First shot of the lockless pipeline implementation. Needs proper test. Partially fixes #4