sgi-gru: fix bugs related to module unload of the GRU driver