bug #37140 [Lock] Fixed reading locks from replica set secondary nodes (kralos)
bug #37140 [Lock] Fixed reading locks from replica set secondary nodes (kralos)

This PR was squashed before being merged into the 5.1 branch.

Discussion
----------

[Lock] Fixed reading locks from replica set secondary nodes

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37139
| License       | MIT
| Doc PR        | https://github.com/symfony/symfony-docs/pull/13775

Force lock existence query to use `readPreference=primary` in case the given mongo connection is using any of the following `readPreference`s:

* primaryPreferred
* secondary
* secondaryPreferred
* nearest

Any of the above would fail if a secondary node is queried during a lock release.

Commits
-------

ebf7eaf503 [Lock] Fixed reading locks from replica set secondary nodes

HeahDude/symfony,paradajozsef/symfony,mpdude/symfony,Tobion/symfony,MatTheCat/symfony,mweimerskirch/symfony,paradajozsef/symfony,paradajozsef/symfony,mpdude/symfony,lyrixx/symfony,oleg-andreyev/symfony,chalasr/symfony,Slamdunk/symfony,ro0NL/symfony,tgalopin/symfony,HeahDude/symfony,curry684/symfony,derrabus/symfony,mweimerskirch/symfony,derrabus/symfony,symfony/symfony,damienalexandre/symfony,smatyas/symfony,ro0NL/symfony,symfony/symfony,pierredup/symfony,nicolas-grekas/symfony,jvasseur/symfony,MatTheCat/symfony,chalasr/symfony,damienalexandre/symfony,jderusse/symfony,OskarStark/symfony,jderusse/symfony,Nyholm/symfony,oleg-andreyev/symfony,hhamon/symfony,Deamon/symfony,Deamon/symfony,MatTheCat/symfony,d-ph/symfony,jvasseur/symfony,phramz/symfony,jderusse/symfony,derrabus/symfony,oleg-andreyev/symfony,xabbuh/symfony,nicolas-grekas/symfony,ro0NL/symfony,tucksaun/symfony,Nyholm/symfony,tgalopin/symfony,jvasseur/symfony,Slamdunk/symfony,Deamon/symfony,hhamon/symfony,Tobion/symfony,gonzalovilaseca/symfony,ogizanagi/symfony,phramz/symfony,HeahDude/symfony,phramz/symfony,jvasseur/symfony,Nyholm/symfony,kbond/symfony,MatTheCat/symfony,sgehrig/symfony,damienalexandre/symfony,tgalopin/symfony,ogizanagi/symfony,jderusse/symfony,fabpot/symfony,smatyas/symfony,Slamdunk/symfony,mweimerskirch/symfony,Nyholm/symfony,xabbuh/symfony,gonzalovilaseca/symfony,OskarStark/symfony,fabpot/symfony,xabbuh/symfony,smatyas/symfony,fabpot/symfony,symfony/symfony,paradajozsef/symfony,lyrixx/symfony,curry684/symfony,pierredup/symfony,chalasr/symfony,d-ph/symfony,d-ph/symfony,stof/symfony,chalasr/symfony,Tobion/symfony,sgehrig/symfony,nicolas-grekas/symfony,pierredup/symfony,oleg-andreyev/symfony,stof/symfony,Deamon/symfony,HeahDude/symfony,OskarStark/symfony,lyrixx/symfony,smatyas/symfony,Slamdunk/symfony,gonzalovilaseca/symfony,mpdude/symfony,stof/symfony,ro0NL/symfony,kbond/symfony,smatyas/symfony,kbond/symfony,curry684/symfony,fabpot/symfony,pierredup/symfony,xabbuh/symfony,sgehrig/symfony,OskarStark/symfony,gonzalovilaseca/symfony,damienalexandre/symfony,Deamon/symfony,Tobion/symfony,d-ph/symfony,ogizanagi/symfony,nicolas-grekas/symfony,tucksaun/symfony,lyrixx/symfony,tgalopin/symfony,hhamon/symfony,stof/symfony,symfony/symfony,sgehrig/symfony,phramz/symfony,derrabus/symfony,curry684/symfony,kbond/symfony,tucksaun/symfony,hhamon/symfony,mweimerskirch/symfony,mweimerskirch/symfony,tucksaun/symfony,ogizanagi/symfony,mpdude/symfony