Quasi-negative holomorphic sectional curvature and ampleness of the canonical class