[RFC v2 02/14] kunit: test: add test resource management API