You might want to check with your vet to rule out any medical issues first.
It sounds behavioral, especially if you have two intact males. I get them neutered before they start spraying. In multiple cat households, you should have a litter box for each and a spare. I'd let him stay in the bathroom while you are gone or a large wire crate would be good too.