Fixed collection modified exception thrown as result of more methods bei...

...ng called on a mock while verifying method calls.

This issue is caused when you call verify on a mock and another thread calls any method on that mock while verify is still executing.

Conditional compilation is used in the test since System.Threading.Tasks is not available in Silverlight.