kernel: swconfig: add a missing unlock in error path