anchor.diff:      erts_debug:lcnt_clear(),
       ok.
   
  -init_per_testcase(_Case, Config) ->
  -    disable_lock_counting(),
  -    Config.
  -
  -end_per_testcase(_Case, _Config) ->
  -    ok.
  -
   disable_lock_counting() ->
       ok = erts_debug:lcnt_control(copy_save, false),
       ok = erts_debug:lcnt_control(mask, []),
  
positive.code:             wait_for_empty_lock_list(Tries - 1)
      end;
  wait_for_empty_lock_list(0) ->
      ct:fail("Lock list failed to clear after disabling lock counting.").
  
  %% Queue up a lot of thread progress cleanup ops in a vain attempt to
  %% flush the lock list.
  
negative.code:     [];
  remove_untoggleable_locks([{resource_monitors, _, _, _} | T]) ->
      remove_untoggleable_locks(T);
  remove_untoggleable_locks([{'esock[gcnt]', _, _, _} | T]) ->
      %% Global lock used by socket NIF
      remove_untoggleable_locks(T);
  remove_untoggleable_locks([H | T]) ->
  