Adds File Locking to HDF Files