Revert "Safer registry initialization"

This reverts commit 12847961a5f2f7315994c0a08473ae7abdafad83.

The registry initialization was already safe since its protected
by the global semaphore

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
Similar to init, move global mem/sem cleanup to kernel unload

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>