net/tap: fix build with GCC 11