Do not write lock-entries for modules with installation errors