Part 1 of mine rework, add support for locking build option by labs