Safely make node's `fs` async API sync.