s3:libsmb: return NT_STATUS_CONNECTION_INVALID if the fd is -1