func WithLock(l lock.Lock) Option {
	return func(o *Options) {
		o.Lock = l
	}
}
WithLock sets the locking implementation option
package sync
import (
	"github.com/micro/go-sync/data"
	"github.com/micro/go-sync/leader"
	"github.com/micro/go-sync/lock"
	"github.com/micro/go-sync/time"
)
func WithLeader(l leader.Leader) Option {
	return func(o *Options) {
		o.Leader = l
	}
}