vfs_curl: bring fread return values in conformance with stdio