Use require instead of getModule for lodash

As described in #5744

@njx