lockProvider: remove unneeded code