cogl: Add a quirk on Mali to glFlush before glGenerateMipmap
But only when the texture in question has associated framebuffers that actually need flushing.
Workaround for: https://github.com/Xilinx/mali-userspace-binaries/issues/3
Related to: #2354 (closed)
Supersedes: !2593 (closed)