He never knew Matthew Perry, but prosecutors say the ketamine that killed him came from the actor’s dealer