Improve metasploit framework module cache prefetch time

Disable the uniqueness validations in a Thread when in batch mode as the module cache construction code and the unique index in the database is already checking for collisions and the uniqueness validator can be re-run to get the pretty errors afterwards.