set the slavebuilder.state when Acquiring or Releasing the build lock
when cloning we should identify the branch and switch to the one selected on the sourcestamps