[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
[proflog] Move ensure_logbuf and emit_* declarations to proflog.h

This will allow their use in future proflog extensions