Set vnet context in codepaths that is executed under taskqueue or
callout contexts.

Ticket: #3587