Fixed bug in multithreaded AS cache.

Fixed a bug where the a new address was added
without synchronizing.