mount.cifs: fix bad free() of string returned by dirname()