Converted FFI to correct pointers

Back when *ptr was splitted into *mut ptr and *const ptr I was in hurry and actually did what was said “compatible” change i.e. *const ptr. It is time to reconsider this as almost none of MDB original API has any notions of const ptrs