Don't force a declaration of upc_lock_t in the compiler.  It interferes with upc2c.
Make MYTHREAD and expression so that upc2c can process it.