The Goldie Theorem for H-semiprime algebras