Michigan bank close to putting mortgage lending disaster behind it