Add an example of pthread calls interception using LD_PRELOAD and dlsym

I haven't had the time to clean up and polish the pull request so it is a bit messy as of now but let me know if it needs to respect some standards and I'll do this in another commit.