test_kmod: fix the lock in register_test_dev_kmod()