dm-latency: make non-api library functions to be static

This commit makes all non-api library functions to be static.