Thread safety and timing: locks users.get_all_active while saving in batch, forces refresh immediately after large update.