[BZ-1073880] add a method to create a single thread executor