Guessing only and assuming its a small cylinder lock, but most bike keys/locks that I have seen, are usually quite simple, and just about any (even an amateur) locksmith will allow the lock to be opened and the battery removed, making replacement of the barrel simple.
Drilling is an option, but...