Libya's instability threatens move to democracy: UN