VS Build changes
Split() clean up locking

Only unlock and relock when idle_loop() is actually called