Check out this solution:
Basically, you need to run diskutil CoreStorage list
from Terminal. Identify the logical CoreStorage volume from that list and note the UUID string.
Then type diskutil CoreStorage delete UUID
where UUID is the string you identified.
You can then partition with Disk Utility and run a Mountain Lion install.