[PATCH 5.10 272/355] sock: Correct error checking condition for (assign|release)_proto_idx()