dm-lc.c: Audit return values of functions invoked in module init routine

Add missing checks for values returned by various functions for
graceful exit in the event of failure.

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