create_symref: check error return from open().