`register_task`/`unregister_task` and `dec_weak_task_count`/`inc_weak_task_count` do the same thing.