Yup, had it several times after sitting for extended periods of time, especially long haul. Usually when just nicely asleep. EXCRUCIATING pain.
I have a medical friend and he suggested drawing a nice hot bath and sitting in it...AND...IT WORKS! This allows the muscle to relax.