db: lock not released in xremove