implement Thread.yield and Thread.holdsLock for android classpath