[sdb] Fix a deadlock in the assembly cache invalidation code.