Added shell lock classes. 

They provide atomic locking for shell scripts.