Critical dynamics of the hybrid Monte Carlo algorithm