Fix missing vars and functions
CRAY - add new mutex to protect pagg creation