Method to acquire a Sync without ever throwing an
InterruptedException. Useful when a mutex is being
used in place of Java synchronization.
boolean held = false ;
while (!held) {
try {
sync.acquire() ;
held = true ;
} catch (InterruptedException exc) {
held = false ;
}
}