core: prevent taking database lock twice
core: prevent taking database lock twice

woju/qubes-core-admin,woju/qubes-core-admin,woju/qubes-core-admin,QubesOS/qubes-core-admin,woju/qubes-core-admin,QubesOS/qubes-core-admin,marmarek/qubes-core-admin,marmarek/qubes-core-admin,QubesOS/qubes-core-admin,marmarek/qubes-core-admin