Kayani rules out any threat to democracy