callstack.core: check monitor more often for callgraph analysis
This commit adds the possibility of canceling a very long callgraph analysis. Without this, the callgraph analysis prevents Trace Compass from exiting correctly and would not cancel properly.