[proflog] Transform proflog ENTER_LOG and EXIT_LOG to functions

This will allow their use in future extensions without having to export LogBuffer struct implementation