[PATCH 2/2] msvcp: Set target to null on error in _Open_dir.