[PATCH 6.1 151/185] fs/pipe: move check to pipe_has_watch_queue()