Added reset method to AtomicPtrCache

After using AtomicPtrCache in real code, we found that a dedicated reset() method makes the code cleaner. Previously one had to create a temporary empty AtomicPtrCache and assign it to the old variable in order to reset.