Core: Allow to configure custom thread pools

Not sure I understand the comment here. I don't see the connection between the condition in the if statement and the fact that we can't introduce new thread pools at runtime