Fix dma buffer lifetime management
In some special circumstances buffers didn't get removed from the
importedBuffers map - for instance when a client creates a buffer,
doesn't commit it and disconnects right away.
In the worst case there could even be a nullptr access, when the
wl_resource happened to point to the same address again, as a dangling
key in the importedBuffers map.
Pick-to: 6.11 6.11.0 6.10
Change-Id: I13fd53f3efe0163c4de3748c80bcf6d1bf589884
Reviewed-by: Thomas Senyk <thomas.senyk@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>