test/secmemtest: test secure memory only if it is implemented