A licensed drug addiction counsellor who delivered the ketamine that killed Friends star Matthew Perry has been sentenced to two years in prison.