staging_new: Add tagging of layers when closing the staging

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>