Conditionally patch BaseBTreeFolder. This give some issues running tests