Make unregister_task() static.