[RFC PATCH net-next 10/11] selftests: net: lib: Add several autodefer helpers