According to Support this isn't actually it is a bug, the game is designed to waste your gold.
If you decide to open a worker slot using gold and then at some point you, or someone else in the association, dismiss a worker, for any reason at all, the slot will close and you will have to use more gold reopening the slot. Surely this isn't how it should be?