Guard subsurface parent access.

Whilst a subsurface must have a parent at the time of creation, the
lifespan is not guaranteed afterwards.

It's a weird thing for a client to do, but we need to not crash
afterwards.

If the parent surface is destroyed we should consider the surface
unmapped.

BUG: 452044


(cherry picked from commit 1d2424a5)
2 jobs for Plasma/5.24 in 5 minutes and 19 seconds (queued for 10 seconds)