safestack a stack locked with a mutex to avoid race conditions Push() and Pop() are your basic actions...