You can use the console:
give_trait "Character name" LoyaltyLevel 9
or sth like that. It will stop them from rebelling, for named chracters only, havn't tried with Captains.