minor race issue in mockResourceProvider
minor race issue in mockResourceProvider

The interrupt tests for providers no longer check for the condition
during the diff operation. defer the lock so other test's DiffFns don't
need to be as carefull locking themselves.

hashicorp/terraform-plugin-sdk,hashicorp/terraform-plugin-sdk