Quantum criticality in a bosonic Josephson junction