Reset avalon->device_fd after it is closed.