[SPARK-3106] Fix the race condition issue about Connection and ConnectionManager

If key for OP_ACCEPT enter this loop, connectionsByKey.getOrElse(key, null) will return null so this logic ignore OP_ACCEPT. I'll refine the comment.