"The aileron lockout on the 767 is based only on flaps not speed."
I believe this is correct (unlike the 744, there is only one thing which will lock/unlock the ailerons... other than the BITE test that is

).
On the 744, there is something known as lock/unlock hysteresis. Lock/unlock depends on whether the aircraft is accelerating or decelerating (so my 744 training notes tell me):
"The ailerons will lock when the "Group A" LE Flaps are retracted and either the airspeed is above 238kts or the mach number is above .53. They will unlock when the Group A LE Flaps are not retracted or airspeed is below *232kts* and mach number is below .51. I guess this is to prevent the ailerons unlocking and locking rapidly if your speed is somewhere between these values (and, perhaps, turbulence is causing your airspeed to fluctuate).
Rgds.
Q.