Scale diff for scrypt when testing for block solves.
Give AMU a much longer timeout on windows than other icarus devices.
Add a wr_trylock wrapper for pthread rw lock write trylock.
Use only a trylock in flush queue to prevent deadlocks.