Special transitions in an O(n) loop model with an Ising-like constraint