Correct the semaphore lock initialization.

Files will go online as soon they are created. Therefore the semaphore
should be initialized before the call to sysfs_create_group.

Signed-off-by: Kumar Amit Mehta <gmate.amit@gmail.com>