add use_locking option to pillows