compositor-drm: Put logic of destroy/releasing bo's in its own function

We have this duplicated in a few places.
1 file changed