Try adding a repeater within about 20ft of your lock and it should fix your intermittent connectivity issues.
This is a common problem with locks and they require a buffered repeater to hold messages for reliable operation as the SmartThings hub doesn’t buffer messages.