added lock mechanism to prevent duplicate posts

i got tons of duplicates when my 7 year twitter bulk import was running
wild on my server. this should prevent duplicates, by preventing
triggering more than 1 parallel import session at the same time.