exit with locks, but not working?
fixed lock test