ksmbd: call putname after using the last component