lib.c: Added prefetch_for_read(ptr) and prefetch_for_write(ptr).

Getting to the point where performance optimizations want to look at
prefetching from DRAM into cache.