Heat the oven to 220 C / 425 F with a rack in the middle. Rinse the sardines under cold water, then pat them dry with paper towels inside and out. Cut four sheets of parchment, each about 40 cm / 16 inches long.
Zest one lemon into a small bowl, then juice it (you need about 2 tbsp). Add the olive oil, garlic, parsley, oregano, salt, pepper and chili flakes, and stir. Slice the second lemon into 8 thin rounds.
Lay one sheet of parchment on the counter. Put 2 lemon slices and 1 thyme sprig in the center, then set 2 sardines on top. Spoon about 1 1/2 tbsp of the herb oil over the fish and a little inside each belly. Repeat with the other 3 sheets.
Bring the long sides of each sheet together over the fish and fold them down twice. Fold and tuck the short ends under so the packet is sealed but not tight around the fish. Set the 4 packets on a 33 x 46 cm / 13 x 18 inch sheet pan.
Bake for 12 minutes, then carefully open one packet. The flesh should be opaque and pull away from the bone when pressed with a knife, or read 145 F / 63 C at the thickest part. If not, reseal and bake 2 more minutes. Slide the sardines and juices onto plates and serve right away.