Remove unnecessary size check.
Add additional lock test.