Adding proc lock/unlock operations.

This implementation is generally broken for now,
should re-run tests suit to see where.