Thai constitution would grant military immunity