[NET]: Remove double dev->flags checking when calling dev_close()