Backported from trunk (rev #9772):                                                                                                                                                                                   
fixed the rl_dec_count() function to actually decrease the counter when used
without cachedb backed