bash lock tool