Add the garlic, pepper, red pepper flakes, and stir for 30 seconds. Add the coconut milk, vinegar, soy sauce, water, brown sugar, salt, and bay leaves, and let the mixture come to a boil. Reduce heat to medium-low and simmer, covered, until the chicken is cooked through, tender, and slightly falling off the bone, about tender 25-30 mins. Stir halfway through.