Switch mason.lock to YAML

Content of mason.lock now cached