The Kangaroos will face England in the final on Saturday night.
Brett Morris added his pair of tries to the total, Lockyer setting up both efforts, the first with a long pass and the second with a well-placed kick.
Gidley improved Morris’ second before Thurston added his first goal by converting Jennings’ hat-trick score.
France – 4
T: Elima (61)
Australia – 42
T: Jennings (22, 27, 56); Lewis (41); B. Morris (45, 50); J. Morris (67, 72)
G: Gidley (41, 50); Thurston (56, 67, 72)
Ref: Leon Williamson
Warrington assistant coach Richard Agar and the rest of Tony Smith's staff and squad will not be preparing particularly differently for their Magic Weekend clash with St Helens on Sunday.
Stats and team news for Saturday's three games at Magic Weekend...
Featherstone Rovers coach Andy Hay wants his team to use their brains a little more effectively this weekend, as they look to bounce back from defeat to Leigh last week.
Huddersfield winger Aaron Murphy is looking forward to stepping out onto the St James' Park pitch to face Catalans Dragons on Sunday.