UIMA-3786 synchronized code to make onBeforeProcess() is not called twice when two threads race ( reply thread and ack thread )

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