remoting/pipewire: compositor shutdown fixes
A couple of fixes for the remoting plugin which causes the compositor to crash upon shutdown.
Will have to be cherry-picked for weston 11.
Included now pipewire as that required the same changes as the remoting one.
/cc @pH5
Edited by Marius Vlad