modules: ln_store: add support for external set/clear hooks