Masonry is a sub-skill of Carpentry, not Mining, first of all.
Second, the reading of the books are specific to character. If you put the skills onto a different character than the ones you read the books with, you'll have to read the mining stone book with that character, and (if the carpenter was transferred over from another character) read the stonecrafting book with the character as well.
Recipes work the same way - they are character-specific, and if you transfer the skill, you have to relearn them on the new character.