The RMFRP core book says, in section 6.2 on pg. 23, "hobby skills, adolescence skills and training package skills are not affected by these (everyman, occupational and restricted) classifications". So if your Dwarven Fighter gains one rank in Swimming from a TP that adds one rank in that skill, it's still one rank for the Dwarf, even though Swimming is a restricted skill for Dwarves. In the same way TP ranks in the Caving skills - which is classified as Everyman for a Dwarf - would not benefit from the Everyman classification.