Run buffer callback in correct context