JCR-2229: reduce the total amount of threads to avoid deadlock with HSQLDB