As mentioned by @helinwang in https://github.com/PaddlePaddle/Paddle/pull/2948#discussion_r128823462 use [Once](https://golang.org/pkg/sync/#Once.Do) may be better to manage the `getRecords` go routine.