Fix import error in library_ext.machine

This change fixes the error
`NameError: global name 'LockType' is not defined`
Merge pull request #26 from wndhydrnt/fix_locktype_import

Fix import error in library_ext.machine (sorry for the long delay - I've been AFK ;) )