Theory of many-body diffusion by the path-probability method: Conversion from ensemble averaging to time averaging