Quasi-negative holomorphic sectional curvature and positivity of the canonical bundle