[matter] do not create a new settings object, but keep reusing the same one
[matter] fix portdb.xmatch() when package is keyword masked

This commit fixes the use of backupenv.