[sgen] Add multiple thread support for sgen thread pool