Self-pulsing in two-cavity optical bistability