iterate over the commit queue without any synchronization is not a good idea...

well, also keep the commit queue blocked to print it is also not a good idea...