[ruby-core:124563] [Ruby Bug#21840] Locking a mutex can lead to starvation