s4-ntvfs: move valid lock range test from smb2 layer to generic code