anchor.diff:                                       ok
                                end
                        end),
  -    Locked = get_all_locks(build, Index, Pid),
  +    Locked = get_all_locks(Service, build, Index, Pid),
       case Locked of
           true ->
               State2 = clear_tree(State),
  
positive.code:     Trees3 = [{IdxN, hashtree:close(Tree)} || {IdxN, Tree} <- Trees2],
      State#state{trees=Trees3}.
  
  get_all_locks(Type, Index, Pid) ->
      case riak_core_entropy_manager:get_lock(Type, Pid) of
          ok ->
              case maybe_get_vnode_lock(Type, Index, Pid) of
                  ok ->
  
negative.code:     end.
  
  -spec maybe_rebuild(state()) -> state().
  maybe_rebuild(State=#state{service=Service, lock=undefined, built=true, expired=true, index=Index}) ->
      Self = self(),
      Pid = spawn_link(fun() ->
                               receive
  