[videodb] Fix MySQL breakage when cleaning up path table during video library clean