Fix intermittent CI failure
Fix intermittent CI failure

If the complete/dispatch is on a new thread there is a race condition
between the new thread and the container thread. The COMPLETE_PENDIND
and DISPATCH_PENDING states were created to handle this scenario so use
them.
apache/tomcat,apache/tomcat,apache/tomcat,apache/tomcat,apache/tomcat