Some 400 detainees force open the doors of a prison near Tripoli as militias battle in the capital.