Security getting better in Syria, says UN refugee agency