shared_ptr<bool> vptr_deleter_armed_flag_ptr (instead of unique_ptr) (#2882)

* shared_ptr<bool> vptr_deleter_armed_flag_ptr (instead of unique_ptr), to fix heap-use-after-free bug.

* Fixing  generated by some compilers in the pybind11 CI suite.
2 files changed