You readlock the table with $query_ = "lock tables test1 as test11 read";- this means that other queries can still read it without any problems, something never (relevant link - scroll down to the section on types of locks):
Lock Type Information read:
- A session containing a lock can read the table (but not write it).
- READ .
- READ.
- , , write :
$query_ = "lock tables test1 as test11 write";