Configure db4 locks according to maxkeys and actually check maxkeys