Better management of locked boolean value for mapnik