mutex performances in java