LOG4NET-376 bring back synchronization accidentially reverted with svn revision 1486883

git-svn-id: https://svn.apache.org/repos/asf/logging/log4net/branches/log4net-1.2.x@1542664 13f79535-47bb-0310-9956-ffa450edef68