If you have GTK modal windows broken on Ubuntu 12.04 (assuming they were working properly before), try to deinstall the following packages:
overlay-scrollbar, liboverlay-scrollbar-0.2-0, liboverlay-scrollbar3-0.2-0
After I removed them from my system, I lost that fancy Mac-style scrolling bars, but the modality is working properly again.