Merge "Avoid heapprofd init when other hooks enabled."