Create mPidToIndexMap and mProcessesList when necessary