Add synchronized decorator

This also creates a convenient module for placing utility routines that help with common threading tasks with the standard threading library.