Fix current scheduler

Use tls for the current scheduler to support concurrent queues