Add missing lock in model cleanup

1 job for Applications/19.04 in 21 minutes and 14 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #6613
linux stable-kf5-qt5 qt5.10

00:21:14

0.0%