client: fix umounting of shared dirs on client shutdown or reboot