[NEXUS-5933] lock factory needs to be nullable so we can disable it