IO::Datastore: create_object(): moved closed and locked checks to top of body; doc tidy.