Density dependence of the line emission of boron-like coronal ions