[PATCH] fix semaphore handling in __unregister_chrdev_region