Don't hold pool lock while performing validity check

Closes #2