fixed freeze up after detach with 'SD.begin()' in open_cwd