lib: stackdepot: add support to disable stack depot