WIP: Added QpLock's first version.
Added Qp::unlock and Qp:isLocked and wrote unit tests for all lock related methods.