Misbehaving banks put wrench in foreclosure process