I don't see any reason why this would be needed. mandoc(1) is the only binary using this library. Unfortunately, the patch doesn't containy any description. It was added in 2014 with commit 6b731eec by @ncopa.