Fixed two crashing bugs: race condition when module was initialized and failing config commands in libapr.