libwine: Move the wine_fold_string implementation to libwine_port.