[PATCH 4.14 11/17] gpio: mockup: fix resource leak in error path