core::rt: Fix scheduling logic for enqueued tasks