IVY-1454 handle multi-threading (as opposed to only multi-process) case in locking


git-svn-id: https://svn.apache.org/repos/asf/ant/ivy/core/trunk@1552434 13f79535-47bb-0310-9956-ffa450edef68