Whisk lemon juice, mustard, garlic, pepper, salt, and chili flakes if using. Toss with chicken and sliced onions.
Cover and marinate in the refrigerator for at least 30 minutes, preferably 2 to 4 hours.
Lift chicken from the marinade and reserve the onions and liquid. Heat oil in a Dutch oven and brown chicken on both sides; work in batches.
Add the onions and cook 8 to 10 minutes until softened and lightly golden.
Return chicken to the pot and add reserved marinade plus water or broth. Cover and simmer 25 to 30 minutes, until chicken reaches 165°F.
Uncover for the final 5 minutes to reduce the onion sauce. Serve over rice with lemon wedges.