Add a simple retry to freebase queries

Now that we always prefetch the root, we're having the #459 problem more times at the build server. This tries to mitigate it