Local lock provider and tests