xbmc/xbmc — comment on commit fc67f9f1f01626f94e011a0bc95e07c5da37bd0b
File:  line 0
By jimfcarroll:

Ha! Your edit is what I was going to suggest. Use an "upgrade" (or "promote") instead and you might be able to eliminate the additional locking for a shared lock. I haven't thought it through yet but if you know how to do it I would suggest it.