Making object cast transparent shadows to self

Good morning everyone,
I have a problem with baking lightmap textures
I have made a picture in order to explain my problem:
http://ressim.net/s/upload/7a3aaf98.gif

I think you pretty much understood what is my problem.
Hope you answer to me quick :smiley: