basics of java concurrency - addition to lock and condition