IO::Datastore: disable State::opened if open_impl() throws.
Replaced header guards with #pragma once.