If the corridor walls are not load-bearing, then they do not need to have the 2-hour fire-resistance rating. If the walls need to be load-bearing, then there are alternatives.
Since the structural frame for Type IIIB requires no rating and the structural frame for Type IIIA requires a 1-hour rating, you can use columns and beams to support the loads in lieu of walls. Thus, the exterior walls are no longer load-bearing and are not required to have the 2-hour rating.
For Type IIIB construction, no additional protection is required for the columns and beams.
For Type IIIA construction, the columns will need individual protection per Section 704.2 for the 1-hour rating. However, the beams supporting no more than two stories of nonload-bearing walls (i.e., a 3-story building) do not need individual protection per Section 704.3, so the 1-hour rating for the corridor walls (if required per Table 1020.1) would be sufficient for the beam fire-resistance protection.
Another option is to consider heavy timber framing for the structural frame of the corridor walls. This may require a code modification, since you'd be falling short of full compliance with Type IV construction, so, for portions of the building, you'd be using the inherent fire-resistance of heavy timber (roughly 1-hour+ equivalent) in lieu of tested assemblies. This would require 8-inch columns supporting floors and 6-inch columns supporting a roof. Beams supporting floors would need to be a minimum of 6 inches wide by 10 inches deep, and beams supporting a roof would need to be a minimum of 6 inches in width by 8 inches in depth.