MDL-31356 enrol_imsenterprise: Fix recstatus behaviour, updatecourse config name and coding style problems