mir: return whether a foreign connection has been set or not
mir: only allow to set foreign surfaces with hardware buffer

And return a CoglBool accordingly.