I think this page covers this topic pretty well, specifically the 6389 section:
The only place that page uses the word "access" is in subsection l (as in lima):
All the other wordings talk about the person with a restraining order trying to buy or obtain a firearm in some manner. It would seem to me that according to this section you could even take your friend to a shooting range and he wouldn't be in violation of the law. Just don't give him the firearm and he'd be okay.(l) If the respondent notifies the court that he or she owns a firearm that is not in his or her immediate possession, the court may limit the order to exclude that firearm if the judge is satisfied the respondent is unable to gain access to that firearm while the protective order is in effect.
Besides, it isn't like he couldn't be arrested because a police officer with a gun wouldn't be allowed to approach him, lest he get control of the police officer's sidearm. "Stay away! I have a restraining order against me!"