net/i40e/base: release spinlock before function returns