Thanks for the Rep! so far, I have yet to hear about a cannabis plant dying of old age when kept in veg, so the answer to how long you can keep a bonsai, is: Indefinitely (years easily).
You will jsut need to repot it in fresh soil every once in a while to give it fresh nutrients to live off...