timed_gpio: fix order of destruction

Signed-off-by: Iliyan Malchev <malchev@google.com>