Follow the synchronized<T> API more closely.