Benchmark of various Java lock-based mechanisms