[smart_holder] Make smart holder type caster of `unique_ptr` accept `automatic_reference` (#4775)

* Also accept automatic_reference

* Add a test case

* Remove the test case

* Add another test case

* Fix test case
3 files changed