states/remote: Check for LockError error type
states/remote: Check for LockError error type

When attempting to lock a remote state backend, failure due to an
existing lock should return an instance of LockError. This allows the
wrapping code to retry until the specified timeout, instead of
immediately exiting.

This commit adds a test for this in the TestRemoteLocks test helper,
which is used in many of the remote state backend test suites.

hashicorp/terraform,hashicorp/terraform,hashicorp/terraform