fix bug: adios may finalize dataspaces/dimes runtime twice when the application is both a writer and reader