Spreading the wealth to employees when times are good can be a valuable motivational tool — and it’s not just a big-company perk.