Although he isn’t really holding it up for John, he is actually just holding it up for himself. John just manages to get under it before Sherlock lets go.
What did you say again?
he also holds the door for john
How about holding doors open for people is a courteous normal thing to do?