[bluetooth] Local name handling fixes

Fixes related to local name handling.

A previous bugfix introduced an explicit request for local name, in
case it got lost during initialization; the related timeout needs to
be cancelled when local name is received from the controller.

Make sure that adapter has a name even if it's to be turned off
before write local name command completes.

Also, set all pending bits when adapter goes down so that all
necessary properties are re-retrieved when adapter comes back up.