Basic lock stuff, not much implemented.