from: #1419353190150836345 message
To clarify, the notification is only meant to appear when an enemy is locking onto the player ship.
According to Captain Shadow though, it will appear when an ally ship is locking an enemy, and when an enemy is locking an ally ship as well.
I think currently the notification only considers if something other than the player is locking, and doesn't consider what is attempting the lock and who the target is.