Revert "Change to setting avalon_task to being the pointer for avalon_idle."

This reverts commit 91a82cd81f8ef63621cc473601adb325d662e409.
Pass fd to avalon_idle.