Bindings: do not use py::call_guard<py::gil_scoped_release>() guard for Database ctor

Releated to #756

Releasing gil in guard can result in crash: https://github.com/pybind/pybind11/issues/5473 , so as it was proposed in pybind11 issue, we move GIL release in lambda function

Merge request reports

Loading