France were just three points ahead with 20 minutes to go after an inconsistent, ill-disciplined display but found another gear to seal a bonus-point win