Fixing dynamoDbLockConfig required prop check (#4422)