Not-quite-barebones serial queue / lock.