I've been to the physio lately due to the same problem. Her diagnosis is that those muscles are in fact going into a spasm to compensate / protect the real source of the problem - weak lower back muscles. She gave me some exercises to do to strengthen those. Still have to get around to it...