UIMA-3788 synchronized code in cancelTimerForCasOrPurge()

git-svn-id: https://svn.apache.org/repos/asf/uima/uima-as/trunk@1591971 13f79535-47bb-0310-9956-ffa450edef68