Fixed MaxLocksPerFile error to deal with more than 9500 records