Changed memory locking interface to be more self-explanatory
Made secretbox test lock less memory at a time