expensive function handling in go GO implementation of Memoizer example from the book Java Concurrency In Practice - Brian Goetz