Remove pthread dependency from CacheLocality.h