added missing synchronized blocks for avoiding concurrency issues
Merge pull request #1 from Flipkart/loader_improvements

added missing synchronized blocks for avoiding concurrency issues