libstdc++: Fix error handling in fs::hard_link_count for Windows