Merge pull request #200 from domob1812/db-lock-limit

Limit maximum DB locks needed for blocks in a softfork.