added cookie support in dynamic.c and unlocking in master_unlock
Merge branch 'master' of https://github.com/Jeremagician/apricot