impl thread-safe Fibonacci generator