improved(?) check for HDF5 file lock in wx Apps