Scheduler: mark thread loop as initialized

Signed-off-by: Eduardo Silva <eduardo@monkey.io>