improved thread safety of the LRUCache and fixed a bug in for loops

--HG--
branch : trunk
4 files changed