I tested your sample in moodle:
There’s no need to set the status to incomplete. Lectora does it automatically when the course is opened for the 1st time. It stays incomplete until “completed”.
As far as I know there’s no need to run LMSCommit() manually.
With “Debug Published Content” checked, you’ll see that the course does exactly what’s been defined by the actions. On the first page it sends “incomplete” and a score of “10”. It’s the LMS that turns the score into “failed”. Moodle has a setting to do that no matter whether the attempt is completed or not. Once deactivated it works as it should “10” and “incomplete”.