Bose polarons near quantum criticality