[IOTDB-3525] Apply Producer-Consumer pattern to compaction submission (#6378)