How is my friend bypassing Applock application
One possible answer can be that he is killing the application process that is protecting your device. One possible way is that he goes to Settings->Apps->[applock_application] and then Force Stop it.

Go to this link for more detail.