JBoss application hangs with threads blocked on APM agent class