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