[PATCH v2] loop: fix backing file reference leak on validation error