callgrind: fix --collect-systime=yes with "no instrumentation" mode

(see bug 139363)


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6593 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/callgrind/main.c b/callgrind/main.c
index 3715c53..160de95 100644
--- a/callgrind/main.c
+++ b/callgrind/main.c
@@ -883,7 +883,8 @@
 static
 void CLG_(post_syscalltime)(ThreadId tid, UInt syscallno, SysRes res)
 {
-  if (CLG_(clo).collect_systime) {
+  if (CLG_(clo).collect_systime &&
+      CLG_(current_state).bbcc) {
     Int o = CLG_(sets).off_full_systime;
 #if CLG_MICROSYSTIME
     struct vki_timeval tv_now;