livepatch: add (un)patch callbacks