replace granular file locks by file region locks