Add a macro to call additional barrier function on the fly