Respects the synchronized modifier of a method.