[pacman-dev] [PATCH 2/2] pacman-optimize: fix database locking race conditions