First, carburetor cleaner eats rubber, might not be a great idea to shoot into the line because it may weaken it.
Second, if these are factory rubber lines it's best to replace them with stainless braided lines. Much better performance and being new they'll be far safer.
If the master cylinder is clogged, it can be removed, disassembled and rebuilt with new seals. But many people just buy new ones as well. Depends how far gone it is.
If the lines and MC are in bad shape, the caliper is probably not great either. Cleaning thoroughly and rebuilding with new seal and maybe new piston (if pitted) would be a good thing.
Post some pics of the lines and inside the MC. Would help to see what you're dealing with.