Fixed multi-thread support in the executive